<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>

<%
	request.setAttribute("title","认证详情");
    request.setAttribute("modelConfigPath", "cust");
%>

<%@ include file="/WEB-INF/views/shared/master/contentHeader.jsp"%>
<style type="text/css">
  .content{
     margin-bottom: 28px;
  }
</style>

<t:panel cssClass="panel-flat form-detailed" customBody="true" customHead="true">
    <div class="detailed-navbar-content panel-body">
        <t:form commandName="autonymApprove" action="/admin/cust/autonymApprove/save" method="post" cssClass="form-horizontal">
            <div class="hide">
                <t:hidden path="id"/>
                <t:hidden path="customerId"/>
                <t:hidden path="autonymStatus"/>
                <t:hidden path="authenticationResult.id"/>
            </div>
            <t:formgroup>
                <t:label path="customer.userIdentity" cssClass="col-sm-2" />
                <t:input readOnly="true" disabled="true" path="customer.userIdentity" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="custRealName" cssClass="col-sm-2" />
                <t:input readOnly="true" disabled="true" path="custRealName" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="custIDCard" cssClass="col-sm-2" />
                <t:input readOnly="true" disabled="true" path="custIDCard" colClass="col-sm-4" />
           </t:formgroup>
            <t:formgroup>
                <t:label path="idReverseOssId" cssClass="col-sm-2" />
                <c:if test="${autonymApprove.idFrontOssId!=null && autonymApprove.idFrontOssId!=''}">
					<img style="width:100px; height:80px;" id="smallPicShow" src="${tfn:getFileUrl(autonymApprove.idFrontOssId)}" /> 
				</c:if>
				<c:if test="${autonymApprove.idFrontOssId==null || autonymApprove.idFrontOssId==''}">
					 <img style="width:100px; height:80px;" id="smallPicShow" src="<c:url value='/images/we/index/WechatIMG8.jpeg' />" />
				</c:if>
            </t:formgroup>
            <t:formgroup>
                <t:label path="idFrontOssId" cssClass="col-sm-2" />
                <c:if test="${autonymApprove.idReverseOssId!=null && autonymApprove.idReverseOssId!=''}">
					<img style="width:100px; height:80px;" id="smallPicShow" src="${tfn:getFileUrl(autonymApprove.idReverseOssId)}" /> 
				</c:if>
				<c:if test="${autonymApprove.idReverseOssId==null || autonymApprove.idReverseOssId==''}">
					 <img style="width:100px; height:80px;" id="smallPicShow" src="<c:url value='/images/we/index/WechatIMG8.jpeg' />" />
				</c:if>
            </t:formgroup>
            <t:formgroup>
                <t:label path="authenticationResult.auditDescription" cssClass="col-sm-2" />
                <t:input path="authenticationResult.auditDescription" colClass="col-sm-4" />
            </t:formgroup>
            <t:formgroup>
                <t:label path="authenticationResult.result" cssClass="col-sm-2" />
                <t:selectButton path="authenticationResult.result" colClass="col-sm-4" />
            </t:formgroup>     
		    <t:panelFoot headingBtnCssClass="heading-btn pull-right-important">
				<t:button icon="icon-floppy-disk" onclick="saveData()" cssClass="btn-info" csize="sm">保存</t:button>
			</t:panelFoot>
	 </t:form>
    </div>
</t:panel>

<script type="text/javascript">
	function saveData(){
		if (!$("form:first").valid()){
			return;
		}
		$("form:first").submit();
	}	
</script>
<%@ include file="/WEB-INF/views/shared/base/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formstyling.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formpickers.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
<%@ include file="/WEB-INF/views/shared/master/contentFooter.jsp"%>
